<template>
<transition name="fade">
  <div class="box">
    <div class="grow-header">
      <router-link to="/time" tag="i" class="iconfont icon-fanhui"></router-link>
      <h2>成长记录</h2>
    </div>
    <div class="grow-content">
      <div class="grow-nav">
        <ul>
          <router-link to="/grow/rember" tag="li">记录列表</router-link>
          <router-link to="/grow/heigth" tag="li">身高曲线</router-link>
          <router-link to="/grow/weight" tag="li">体重曲线</router-link>
          <router-link to="/grow/header" tag="li">头围曲线</router-link>
        </ul>
      </div>
        <router-view></router-view>
  </div>
  </div>
</transition>
</template>

<style lang="scss">
@import '@/lib/reset.scss';
.grow-header {
  @include rect(100%, 0.42rem);
  background: #f8eaca;
  line-height: 0.42rem;
  i {
    float: left;
    font-size: 0.16rem;
    width: 0.3rem;
    text-align: center;
    font-weight: 700
  }
  h2 {
    float: left;
    width:80%;
    text-align: center;
    font-size: 0.16rem;
    font-weight: 500;
  }
}
.grow-content {
  @include rect(100%, 100%);
  overflow: auto;
  text-align: left;
  .grow-nav {
    @include rect(100%, 0.44rem);
    line-height: 0.44rem;
    ul {
      @include flexbox();
      @include justify-content(space-around);
      @include align-items();
      li {
        @include rect(0.56rem, 0.4rem);
        color: #333;
        // border-bottom: 1px solid #e4d299;
        &.router-link-active {
          border-bottom: 1px solid #e4d299;
        }
      }
    }
  }
  .grow-list {
    margin-top: 0.1rem;
    @include rect(100%, 1rem);
    line-height: 0.20rem;
    border-radius: 0.12rem;
    background-color: rgb(233, 233, 233);
    border: 1px solid rgba(255, 255, 255, 0);
    text-indent: 0.18rem;
    h3 {
      line-height: 0.2rem;
      margin-top: 0.08rem;
      font-size: 0.14rem;
      span {
        margin-left: 0.25rem;
      }
      i {
        float: right;
        margin-right: 0.15rem;
      }
    }
    p {
      line-height: 0.25rem;
    }
    .number {
      @include flexbox();
      @include justify-content(space-between);
      width: 95%;
      line-height: 0.2rem;
      margin-top: 0.1rem;
    }
  }
}
</style>
